POV-Ray : Newsgroups : povray.newusers : Problems declaring objects : Re: Problems declaring objects Server Time
30 Jul 2024 10:20:33 EDT (-0400)
  Re: Problems declaring objects  
From: Tim Nikias
Date: 15 Sep 2004 11:00:31
Message: <4148590f$1@news.povray.org>
I've just used your scene and took a look at it. Have you tried moving the
camera?
If, for example, you place the camera at <-20,8,0> you'll notice a few
problems your clock has.

It seems to me like you are building the clock to work from a specific
angle, instead, you should try building the clock as it would be in real
world. Maybe by measuring a real clock, you can see how high certain objects
are, and how thick, etc. Another thing you should try to do is keep the code
clean and easy to understand. For example, the white dots you use to
represent 12, 3, 6 and 9 o'clock are translated multiple times before they
are at their final location.

Just take your first white sphere. It is centered at <-0.3,-0.7,0> and you
translate it by <2.1,9.7,-4>. Then, later, you reference the object and then
apply "translate 0.5 scale 0.5" to it. It would be much easier to simply
create the sphere at <0,0,0>, then position it where you want it using a
single "translate", e.g. like this:
sphere{<0,0,0>,0.1 pigment{color White}finish{ambient 1}
translate <1.8,9,-4>
}

Or, much easier, like this:
sphere{<1.8,9,-4>,0.1 pigment{color White}finish{ambient 1}}

A question that comes to mind when looking at the object and your questions
is if you properly understand the cartesian coordinate system used by
POV-Ray? This is not meant to taunt you, but a proper understanding of it
would be very useful when working with POV-Ray. Did you take a few Advanced
Geometry classes at school or college, by any chance? You'd get a good idea
of the coordinate system that way.

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.